<%@taglib uri="/struts-tags" prefix="s"  %>

<script type="text/javascript" language="javascript">
function preencherMembers(id) {

	toOpen="/league/listMembers2.action";
	
	retrieveUrl(toOpen);
}
</script>


<div class="post" >
<h2 class="title"> Select League</h2>
	<div class="entry">
		<br/>
		<s:form name="/league" action="removeMember" method="post" validate="true">
			<s:select  label="League" name="id" list="list" listValue="name"  listKey="id"  emptyOption="true" onchange="preencherMembers(id)" />
			<s:if test="members != null">
				<s:select  label="User" name="userId" list="members" listValue="firstName"  listKey="id"  emptyOption="true" />
			</s:if>
			<s:submit value="Ok"/>
		</s:form>
	</div>
</div>